﻿//************************************
// @FileName: Packet.cs
// @Brief   : 数据包，可序列化
// @Author  : Waterstrong
// @DateTime: 2012-11-7 9:26:55
//************************************
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Input;
using System.Runtime.Serialization.Formatters.Binary;
using System.IO;

namespace Common
{
    [Serializable()]
    public class Packet
    {
        public Packet()
        {

        }
        public Packet(Key key, string res)
        {
            _inputKey = key;
            _resource = res;
        }
        private Key _inputKey; // 传入的按键
        public System.Windows.Input.Key InputKey
        {
            get { return _inputKey; }
            set { _inputKey = value; }
        }        
        private string _resource; // 传入的动画资源
        public string Resource
        {
            get { return _resource; }
            set { _resource = value; }
        }
    }
}
